import {Controller, Get, Param} from '@nestjs/common';
import {loadBalanceHttpClient} from '../nacosClient';

@Controller('/department')
export class DepartmentController {
  @Get('/:id')
  async test(@Param('id') id: string): Promise<any> {
    return await loadBalanceHttpClient.get(`lb://user-internal/inside/department/${id}`);
  }
}
